<?php
namespace app\home\model;
use think\Db;
use think\Model;
class WorkerModel extends Model{

    public  function   character()
    {
        return $this->hasOne('record', 'worker_id', 'id');
    }

//    public  function  picture(){
//        return $this->hasMany('teacher_picture','teache_id','id');
//    }

    public  function   project()
    {
        return $this->hasOne('project', 'project_id', 'id');
    }

}
